<?php 
if(!isset($_SESSION['username'])){
	header("Location: index.php");
}
$page_title = "21 Game - Logout";
include("header.php"); ?>

<!-- page header -->
<div class="page-header">
	<div class="container">
		<h1>Logout</h1>
	</div>
</div>
<!-- end page header -->

<!--start  logout -->
<?php 
	session_destroy();
 ?>
<div class="container">
	<div class="row">
		<p class="lead"><span class="glyphicon glyphicon-off"></span>You have been logged out from your account!</p>
		<hr>
		<p><a href="index.php">You will be redirected in 4 seconds, if nothing happens click here!</a></p>
	</div>
</div>
<!-- end  logout -->

<?php 
header('Refresh: 4; url=index.php');
include("footer.php"); ?>